<template>
  <div id="login-view">
    <router-view></router-view>
  </div>
</template>

<script lang="ts" setup>
  import { useLoginUserStore } from '@/store/useLoginUserStore'
  import router from '@/router'
  const loginUserStore = useLoginUserStore()
  if (loginUserStore.loginStatus) {
    router.push({
      path: '/chat'
    })
  }
</script>

<style lang="less">
  #login-view {
    padding-top: 80px;
    display: flex;
    justify-content: center;
    align-items: center;

  }
</style>